home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / UDEllView.h < prev    next >
Text File  |  1990-11-26  |  2KB  |  78 lines

  1. /*
  2.     ScrollView.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "Box.h"
  8. #import "color.h"
  9.  
  10. @interface ScrollView : View
  11. {
  12.     id                  vScroller;
  13.     id                  hScroller;
  14.     id                  contentView;
  15.     float               pageContext;
  16.     float               lineAmount;
  17.     struct __sFlags {
  18.     unsigned int        vScrollerRequired:1;
  19.     unsigned int        hScrollerRequired:1;
  20.     unsigUEBint        vScrollerStatus:1;
  21.     unsigned int        hScrollerStatus:1;
  22.     unsigned int        noDynamicScrolling:1;
  23.     unsigned int        borderType:2;
  24.     unsigned int        rulerInstalled:1;
  25.     unsigned int        _RESERVED:8;
  26.     }                   _sFlags;
  27.     id                  _ruler;
  28. }
  29.  
  30. + getFrameSize:(NXSize *)fSize forContentSize:(const NXSize *)cSize horizScroller:(BOOL)hFlag vertScroller:(BOOL)vFlag borderType:(int)aType;
  31. + getContentSize:(NXSize *)cSize forFrameSize:(const NXSize *)fSize horizScroller:(BOOL)hFlag vertScroller:(BOOL)vFlag borderType:(int)aType;
  32.  
  33. - initFrame:(const NXRect *)frameRect;
  34. - getDocVisibleRect:(NXRect *)aRect;
  35. - getContentSize:(NXSize *)contentViewSize;
  36. - resizeSubviews:(const NXSize *)oldSize;
  37. - drawSelf:(const NXRect *)rects :(int)rectCount;
  38. - setDocView:aView;
  39. - docView;
  40. - setDocCursor:anObj;
  41. - (int)borderType;
  42. - setBorderType:(int)aType;
  43. - setBackgroundGray:(float)value;
  44. - (float)backgroundGray;
  45. - setBackgroundColor:(NXColor)color;
  46. - (NXColor)backgroundColor;
  47. - setVertScrollerRequired:(BOOL)flag;
  48. - setHorizScrollerRequired:(BOOL)flag;
  49. - vertScroller;
  50. - horizScroller;
  51. - setVertScroller:anObject;
  52. - setHorizScroller:anObject;
  53. - setLineScroll:(float)value;
  54. - setPageScroll:(float)value;
  55. - setCopyOnScroll:(BOOL)flag;
  56. - setDisplayOnScroll:(BOOL)flag;
  57. - setDynamicScrolling:(BOOL)flag;
  58. - tile;
  59. - reflectScroll:cView;
  60. - write:(NXTypedStream *)stream;
  61. - read:(NXTypedStream *)stream;
  62.  
  63. /* 
  64.  * The following new... methods are now obsolete.  They remain in this  
  65.  * interface file for backward compatibility only.  Use Object's alloc method  
  66.  * and the init... methods defined in this class instead.
  67.  */
  68. + newFrame:(const NXRect *)frameRect;
  69. + new;
  70.  
  71. @end
  72.  
  73. @interface ScrollView(Ruler)
  74. - toggleRuler:sender;
  75. - ruler;
  76. @end
  77.  
  78.